<?php
    //建立数据库连接
    include("../inc/dbconn.php");

    $fullName = $_POST["fullName"];
    $shortName = $_POST["shortName"];
    $orders = $_POST["orders"];

    $sql = "insert into division (shortName,fullName,orders) values ('$shortName','$fullName','$orders')";
    if ($conn->query($sql) === TRUE){
        $data["code"] = 3000;
        $data['msg']='添加成功';
        $data["list"] = $rows;
    }else{
        $data["code"] = 3001;
        $data['msg']='未知错误';
    }
    echo json_encode($data);
?>